////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//  Copyright (c) Microsoft Corporation. All rights reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2012 Kentaro Sekimoto  All rights reserved.
////////////////////////////////////////////////////////////////////////////

#include <tinyhal.h>


extern struct BlockStorageDevice  g_FM3_BS;
extern struct IBlockStorageDevice g_FM3_Flash_DeviceTable;
extern struct BLOCK_CONFIG        g_FM3_BS_Config;

extern struct BlockStorageDevice  g_FRAM_BS;
extern struct IBlockStorageDevice g_FRAM_DeviceTable;
extern struct BLOCK_CONFIG        g_FRAM_BS_Config;

//extern struct BlockStorageDevice  g_M25P64_BS;
//extern struct IBlockStorageDevice g_M25P64_Flash_DeviceTable;
//extern struct BLOCK_CONFIG        g_M25P64_BS_Config;


void BlockStorage_AddDevices()
{
BlockStorageList::AddDevice(&g_FM3_BS,
                            &g_FM3_Flash_DeviceTable,
                            &g_FM3_BS_Config, FALSE);
BlockStorageList::AddDevice(&g_FRAM_BS,
                            &g_FRAM_DeviceTable,
                            &g_FRAM_BS_Config, FALSE);
//    BlockStorageList::AddDevice( &g_M25P64_BS,
//                                 &g_M25P64_Flash_DeviceTable,
//                                 &g_M25P64_BS_Config, FALSE );
}

